package ketang.StringBufferTest;

public class StringBufferTest {
    public static void main(String[] args) {
        StringBuffer sb=new StringBuffer();
        System.out.println(sb.length());
        sb.append("hello java!");
        System.out.println(sb.length());
        sb.append('你');
        System.out.println(sb.length());
        sb.append(new MathTest().toString());//等价于toString（）;
        System.out.println(sb.length());
        System.out.println(sb);
    }
}
